Ext.define('AmpleHarvest.objects.importrequesttool.view.toolbar.ImportRequestToolbar',
{
   extend   : 'Ext.toolbar.Toolbar',
   alias    : 'widget.ampleharvest-objects-importrequesttool-view-toolbar-importrequesttoolbar',
   requires :
   [
         "AmpleHarvest.eventHandler.cWindowEvents", 
         "Ext.button.Button"
   ],
   items    :
   [
         {
            iconCls  : "toolbar-harvest-add-icon",
            text  : "New Import Request",
            handler  : function()
            {
            	m_obj_AmpleHarvest_ViewPort.fireEvent(AmpleHarvest.eventHandler.cWindowEvents.C_STR_EVENT_IMPORT_REQUEST,"", true);
            },
            scope : this
         }
   ],
   
   initComponent: function() 
   {
	   //this.items.add('->');
	   //this.items.add('T');
	   /*this.tools =
	     [
	           {
	              type  : 'refresh',
	               handler  : function(event, toolEl, panel)
	               {
	                  //this.refreshData();
	               },
	               scope : this
	            }
	      ];*/
     this.callParent();
   }

});
